package com.tuling.learnmongodb.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 订单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private String id;
    private String status;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date orderTime; // 下单时间

    private String shipper; //发货人
    private String shipperAddress; //发货人地址
    private String shipperPhone; //发货人手机
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date shipTime; // 发货时间

    private String receiver; //收货人
    private String receiverAddress; //收货人地址
    private String receiverPhone; //收货人手机
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date receiveTime; // 收货时间
    private List<Logistic> logistics; // 物流信息
}
